Auto merge of #4404 - parkovski:master, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 14 Aug 2017 23:23:05 +0000 (23:23 +0000)
committerbors <bors@rust-lang.org>
Mon, 14 Aug 2017 23:23:05 +0000 (23:23 +0000)
commit64f4dfd00745428a81b75f65ff9da473ebd5a806
tree06c894de2dcd2c5d62319a3555e0907f4a39d730
parent668d55cc6d54c7e9635c924c252621f5e6664e00
parent50879f33a8a8697a00db7280542aeaf7c8bb4f4d
Auto merge of #4404 - parkovski:master, r=alexcrichton

Fix #4370 - init panic in C:\ or /

This fixes the crash in this issue, but the error message is strange - unable to create directory 'C:\\.'. I don't have write permissions there without becoming admin, so I suspect it's just a permission issue, but the weird error can be fixed by calling Path::canonicalize on line 300.
src/cargo/ops/cargo_new.rs